package com.alibaba.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author YL
 * @date 23:05 2021/10/9
 */
@RestController
@RequestMapping("/config")
@RefreshScope
public class ConfigController {

    @Value("${mtcarpenter.title}")
    private String mtcarpenter;

    @RequestMapping("/get")
    public String get(){
        return mtcarpenter;
    }
}
